package com.yanqu.road.entity.activity.youxing;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Objects;

@FieldTypeAnnotation(tableName = "t_c_xing_you_team_catch_log_data", desc = "行游山水-衙门抓捕日志")
public class CrossXingYouShanShuiCatchLogData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(update = true, desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(update = true, desc = "日志ID")
    private long id;

    @FieldTypeAnnotation(desc = "队伍ID")
    private int teamId;

    @FieldTypeAnnotation(desc = "抓捕队伍ID")
    private int targetTeamId;

    @FieldTypeAnnotation(desc = "抓捕玩家ID")
    private long targetUserId;

    @FieldTypeAnnotation(desc = "抓捕缴获")
    private String seizeCount;

    @FieldTypeAnnotation(desc = "抓捕时间")
    private long catchTime;

    @FieldTypeAnnotation(desc = "抓捕玩家昵称")
    private String nickName;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if(this.groupId != groupId) {
            this.groupId = groupId;
            setUpdateOption();
        }
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        if(this.id != id) {
            this.id = id;
            setUpdateOption();
        }
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        if(this.teamId != teamId) {
            this.teamId = teamId;
            setUpdateOption();
        }
    }

    public int getTargetTeamId() {
        return targetTeamId;
    }

    public void setTargetTeamId(int targetTeamId) {
        if(this.targetTeamId != targetTeamId) {
            this.targetTeamId = targetTeamId;
            setUpdateOption();
        }
    }

    public long getTargetUserId() {
        return targetUserId;
    }

    public void setTargetUserId(long targetUserId) {
        if(this.targetUserId != targetUserId) {
            this.targetUserId = targetUserId;
            setUpdateOption();
        }
    }

    public String getSeizeCount() {
        return seizeCount;
    }

    public void setSeizeCount(String seizeCount) {
        if(!Objects.equals(this.seizeCount, seizeCount)) {
            this.seizeCount = seizeCount;
            setUpdateOption();
        }
    }

    public long getCatchTime() {
        return catchTime;
    }

    public void setCatchTime(long catchTime) {
        if(this.catchTime != catchTime) {
            this.catchTime = catchTime;
            setUpdateOption();
        }
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
        setUpdateOption();
    }
}
